import {Text, View} from 'react-native';
import useAppStore from './store';
import SearchDevice from './components/searchDevice';
import DeviceInfo from './components/deviceInfo';
import Album from './components/album';

function App() {
  const {curDevice} = useAppStore();
  return (
    <View>
      {curDevice.ip ? (
        <View>
          <DeviceInfo />
          <Album />
        </View>
      ) : (
        <SearchDevice />
      )}
      {/* <Text>123</Text> */}
    </View>
  );
}
export default App;
